#pragma once

class FontCache
{
	BITMAPINFO m_tBitmapInfo;

	HDC     m_hdc;       

	Font    *m_pEngFont;
	Font    *m_pHZFont;
	Bitmap  *m_pBitmap;

	int		m_iFontSize;

	BYTE    m_byBitmap[128][128];

	HBRUSH  m_hSolidBrush;

public:
	FontCache(void);
	~FontCache(void);

	void Create(const LOGFONT *pEngFontLog,const LOGFONT *pHZFontLog,BOOL bSoftEdge);
	void Destroy();

	void CacheText(const char *pChar,int iCharCount,int iOffsetX,int iOffsetY);
	void AdjustEmpty();

	int  GetPixel(int iX,int iY);

	


	BOOL m_bSoftEdge;
};
